<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>

<h1>Spring Boot file upload example</h1>

<form method="POST" th:action="@{/upload}"  enctype="multipart/form-data">
    <div class="form-group">
        <label for="title" class="col-sm-1 control-label">邮件标题</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" name="title"  id="title" placeholder="邮件标题"/>
        </div>
    </div>
    <div class="form-group">
        <label for="title" class="col-sm-1 control-label">图片</label>
        <div class="col-sm-10">
            <input type="file" name="file" /><br/><br/>
        </div>
    </div>

    <input type="submit" value="Submit" />
</form>

</body>
</html>